package com.zc.operator.domain;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 调整电价对象 charge_station_adjust_price
 *
 * @author glb
 * @date 2024-03-12
 */
public class ChargeStationAdjustPrice extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 价格ID */
    private Long id;

    /**场站编号*/
    @Excel(name = "场站编号")
    private String stationCode;

    /** 下发类型（1：自定义时间2：立即生效） */
    @Excel(name = "下发类型", readConverterExp = "1=：自定义时间2：立即生效")
    private String region;

    /** 自定义日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "自定义日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 自定义时间 */
    @JsonFormat(pattern = "HH:mm:ss")
    @Excel(name = "自定义时间", width = 30, dateFormat = "HH:mm:ss")
    private Date time;

    /** 调整设备（1：直流2：交流） */
    @Excel(name = "调整设备", readConverterExp = "1=：直流2：交流")
    private String mold;

    /** 定价类型（1：全天一个价 2：分段） */
    @Excel(name = "定价类型", readConverterExp = "1=：全天一个价,2=：分段")
    private String pricing;

    /** 同价电费 */
    @Excel(name = "同价电费")
    private String electricPrice;

    /** 同价服务费 */
    @Excel(name = "同价服务费")
    private String servicePrice;

    /** 时间划分 */
    @Excel(name = "时间划分")
    private String dateFrom;

    /** 表格数据 */
    @Excel(name = "表格数据")
    private String tableData;

    private List<ChargeStationAdjustPriceAdditional> tableDataList;

    private Map dateFromMap;

    private Long priceTypeId;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setRegion(String region)
    {
        this.region = region;
    }

    public String getRegion()
    {
        return region;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public void setTime(Date time)
    {
        this.time = time;
    }

    public Date getTime()
    {
        return time;
    }
    public void setMold(String mold)
    {
        this.mold = mold;
    }

    public String getMold()
    {
        return mold;
    }
    public void setPricing(String pricing)
    {
        this.pricing = pricing;
    }

    public String getPricing()
    {
        return pricing;
    }
    public void setElectricPrice(String electricPrice)
    {
        this.electricPrice = electricPrice;
    }

    public String getElectricPrice()
    {
        return electricPrice;
    }
    public void setServicePrice(String servicePrice)
    {
        this.servicePrice = servicePrice;
    }

    public String getServicePrice()
    {
        return servicePrice;
    }
    public void setDateFrom(String dateFrom)
    {
        this.dateFrom = dateFrom;
    }

    public String getDateFrom()
    {
        return dateFrom;
    }
    public void setTableData(String tableData)
    {
        this.tableData = tableData;
    }

    public String getTableData()
    {
        return tableData;
    }

    public String getStationCode() {
        return stationCode;
    }

    public void setStationCode(String stationCode) {
        this.stationCode = stationCode;
    }


    public List<ChargeStationAdjustPriceAdditional> getTableDataList() {
        return tableDataList;
    }

    public void setTableDataList(List<ChargeStationAdjustPriceAdditional> tableDataList) {
        this.tableDataList = tableDataList;
    }

    public Map getDateFromMap() {
        return dateFromMap;
    }

    public void setDateFromMap(Map dateFromMap) {
        this.dateFromMap = dateFromMap;
    }

    public Long getPriceTypeId() {
        return priceTypeId;
    }

    public void setPriceTypeId(Long priceTypeId) {
        this.priceTypeId = priceTypeId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("region", getRegion())
            .append("date", getDate())
            .append("time", getTime())
            .append("mold", getMold())
            .append("pricing", getPricing())
            .append("electricPrice", getElectricPrice())
            .append("servicePrice", getServicePrice())
            .append("dateFrom", getDateFrom())
            .append("tableData", getTableData())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
